@mixin w {
    width: 1150px;margin: 0 auto;
}
@mixin textCenter($val){
    text-align: center;
    line-height: $val;
}
@mixin flexCenter{
    display: flex;
    justify-content: center;
    align-items: center;
}

@mixin contentTitle {
    width: 298px;
    height: 31px;
    margin: 0 auto;
    border: 1px solid #000;
    text-align: center;
    font-weight: 500;
    font-size: 16px;
    line-height: 31px;
}
@mixin pos($val) {
    width: 60px;
    height: 60px;
    background-color: #fff;
    position: absolute;
    #{$val}: 0;
    top: 50%;
    transform: translateY(-50%);
    opacity: .8;
    cursor: pointer;
    z-index: 10000;
}

#yoho-header{
    .tool-wrap{
        background: #f4f4f4;
        height: 32px;
            .center-content{
            height: 32px;
            @include w;
            .tool-left{
                width: 120px;
                height: 100%;
                float: left;
                @include flexCenter();
                position: relative;
                .icon-hamburgermenu{
                    font-size: 20px;
                    color: black;
                }
                
                &>a{
                    color: #000;
                }
                .yoho-tool-list{
                    position: absolute;
                    width: 170px;
                    top: 32px;
                    left: 5px;
                    background: #f4f4f4;
                    @include textCenter(32px);
                    display: none;
                    li{
                        a{
                            color: #9196a0;
                            font-size: 14px;
                        }
                    }
                }
                &:hover{
                    .yoho-tool-list{
                        display: block;
                    }
                }
            }
            .tool-swindle{
                width: 150px;
                height: 100%;
                display: flex;
                @include flexCenter();
                float: left;
                .icon-note{
                    font-size: 20px;
                }
                &>a{
                    font-size: 12px;
                    color: red;
                }

            }
            
            .tool-right{
                height: 32px;
                float: right;
                @include flexCenter();
                ul{
                    @include flexCenter();
                    li{
                        display: flex;
                        align-items: center;
                        a{
                            color: #8e8e8e;
                            padding-right:10px;
                        }
                    }
                    span{
                        border-left: 1px solid #000;
                        padding-left: 10px;
                    }
                    #loginBox{
                        margin-right: 10px;
                        a{
                            border: #000;
                            padding: 0;
                        }
                        .quitBtn{
                            background-color: #fff;
                            border: 0;
                            cursor: pointer;
                            font-size: 12px;
                            margin-left: 5px;
                        }
                         
                    }
                }
            }
        }
    }

    .head-wrap{
        height: 88px;
        overflow: hidden;
        .login-center{
            @include w;
            margin-top: 22px;
            position: relative;
            .login{
                width: 182px;
                height: 53px;
                position: absolute;
                left: 42%;
                background: url(../img/logo-en.png) no-repeat 50%;
            }
            .head-right{
                height: 28px;
                float: right;
                @include flexCenter();
                #search-from{
                    width: 320px;
                    height: 100%;
                    margin-top: 10px;
                    border: 1px solid #000;
                    display: flex;
                    .search-box{
                        width: 240px;
                        height: 100%;
                        border: 0;
                    }
                    button{
                        width: 80px;
                        height: 100%;
                        border: 0;
                        background: url(../img/search.png) no-repeat center center;
                        background-color: #000;
                        cursor: pointer;
                    }
                }

                .go-cart{
                    .icon-tianchongxing-{
                        display: block;
                        margin-top: 10px;
                        font-size: 26px;
                        color: #3a3a3a;
                        margin-left: 20px;
                    }
                }
            }

        }
    }

    .nav-wrap{
        height: 40px;
        background: #000;
        .nav-content{
            @include w();
            .nav{
                li{
                    float: left;
                    line-height: 40px;
                    margin-right: 46px;
                    padding-right: 46px;
                    a{
                    font-size: 14px;
                    color: #fff;
                    &:hover{
                        border-bottom:2px solid #fff ;
                    }
                    }
                }
            }
        }
    }
}